package com.lihan.exception;

import org.apache.commons.beanutils.PropertyUtilsBean;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * ClassName: MyControllerAdvice
 * Package: com.lihan.exception
 * Description:
 *  异常处理类
 * @Author 李涵
 * @Create 2025-05-22 14:47
 * @Version 1.0
 */
@ControllerAdvice
public class MyControllerAdvice {

    @ExceptionHandler(value = {RuntimeException.class,Exception.class})
    public String ExceptionHandler(){
        System.out.println("ok");
        return "ok";
    }

}
